<template>
    <div>
         A组件
         <button @click='add'>向B发送</button>
    </div>
</template>
<script>
import mitt from './bus.js'
export default {
    methods:{
        add(){
            mitt.emit('qwe','hello')
        }
    }
}
</script>